home *** CD-ROM | disk | FTP | other *** search
- Path: janus.cqu.edu.au!usenet
- From: Mutchg@Topaz.Cqu.Edu.Au (G.D.Mutch)
- Newsgroups: comp.lang.c++
- Subject: NEED HELP WITH ABSOLUTE ADDRESSING
- Date: 18 Apr 1996 22:46:17 GMT
- Organization: CQ University
- Message-ID: <4l6gnp$38c@janus.cqu.edu.au>
- NNTP-Posting-Host: 138.77.57.12
- X-Newsreader: WinVN 0.92.6+
-
- Please !
- Can Anyone tell me how to assign an absolute address to a variable,
- or get the variable to point to 0x378 ?
-
- I wish to access the 24 bits at the parallel printer port directly.
- and load the data directly.
-
- I wish to get the compiler to assign 0x378 to the variable address.
- Eg.
-
- int &Base0 = 0x378h;
-
- int *Base0 = 0x378h;
-
- int Base0 = 0x378h;
-
- None of these code fragments will not assign 0x378h to the absolute address
- of Base0. I find this odd... what am I overlooking ?
-
- If this fails I will resort to inline assembler code .
-
- I'm using turbo c++ 3.1 at the moment.
-
-
-
- Also can anybody give me the source code in load Gif,Bmp,Pcx ,etc graphic
- files to the screen. Anything would be helpful... preferably with
- meaningful comments in the code, so as I can learn how its done in C++.
-
-
- Also how do I use the project organiser with turbo C++ 3.1 ?
- I have no idea what I'm suppose to do to use it... an example with
- the explaination would be nice ?
-
-
- (Please excuse me, I'm still converting over from Pascal)
-
- Thanks in advance
- G.D.Mutch
-
-